PeekBankInt
IntegerValue = PeekBankInt(BankNumber, AddressOffset)
 
Parameters:

    BankNumber = The Index Identifier of the bank that you wish to peek
    AddressOffset = The Address where you want to write this data to within the bank
Returns:

    IntegerValue = The Value that was peeked from memory
 

     PeekBankInt allows you to peek (read) a 32bit integer value from a memory bank.



FACTS:


      * 32bit integer values can represent a numeric range of -2147483648 to 2147483647
      * 32bit integer values are signed.
      * 32bit integers are 4 bytes wide
      * 32bit integers are 2 word wide




Mini Tutorial:


      This simple example creates a bank, pokes some Integer values into it, the Peek these values and displays them.

  
  
; Create Memory Bank #1 and make it 1000 bytes in size
  CreateBank 1,1000
  
  
; Store some 32bit integer values into the bank
; ================================================
  
; Poke the integer value 123456 into memory bank 1 at
; address offset 500
  
  PokeBankInt 1500123456
  
; Poke the next integer value 222333 at 504, So it doesn't overwrite
; the previous integer value poked at 500.
  
  PokeBankInt 1504222333
  
  
; Read and Display the previously poke value again.
  Print "Your Value:"+Str$(PeekBankInt(1,500))
  
; Read and Display the previously poke value again.
  Print "Your Value:"+Str$(PeekBankInt(1,504))
  
  
  
; Display the Screen and wait for the user to press a key
  Sync
  WaitKey
  



This example would output.

  
  Your Value: 123456
  Your Value: 222333
  


 
Related Info: CreateBank | PeekBankByte | PeekBankFloat | PeekBankString | PeekBankWord | Pointer | PokeBankByte | PokeBankFloat | PokeBankInt | PokeBankString | PokeBankWord :
 


(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com